import request from '@/utils/request'

// 查询编码配置列表
export function listItemCode(query) {
  return request({
    url: '/service/config-center/item-code/list',
    method: 'get',
    params: query
  })
}

// 查询编码配置详细
export function getItemCode(id) {
  return request({
    url: '/service/config-center/item-code/' + id,
    method: 'get'
  })
}

// 新增编码配置
export function addItemCode(data) {
  return request({
    url: '/service/config-center/item-code',
    method: 'post',
    data: data
  })
}

// 修改编码配置
export function updateItemCode(data) {
  return request({
    url: '/service/config-center/item-code',
    method: 'put',
    data: data
  })
}

// 删除编码配置
export function delItemCode(id) {
  return request({
    url: '/service/config-center/item-code/' + id,
    method: 'delete'
  })
}
